﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace VM.Entity.EntityMap.Files
{
    public class sys_fileLog
    {
        private int? _id;
        private int? _orgid;
        private string _name;
        private string _businessname;
        private string _path;
        private string _oldfilename;
        private string _filename;
        private string _filepath;
        private string _filetype;
        private int? _billstatus;
        private int? _createuserid;
        private DateTime? _createdate;
        private int? _isdelete;
        private string? _roleinfoids;
        private string? _description;
        /// <summary>
        /// 内码，不用传  
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, IsOnlyIgnoreInsert = true)]
        [JsonIgnore]
        public int? id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 组织内码，前期不传
        /// </summary>
        [JsonIgnore]
        public int? orgId
        {
            set { _orgid = value; }
            get { return _orgid; }
        }

        /// <summary>
        /// 单据内码
        /// </summary>
        public int menuId { get; set; }

        /// <summary>
        /// 业务表单的内码
        /// </summary>
        [JsonIgnore]
        public int? parentId { get; set; }
        /// <summary>
        /// 业务类型名称，自定义
        /// </summary>
        public string businessName
        {
            set { _businessname = value; }
            get { return _businessname; }
        }
 
        /// <summary>
        /// 原文件名称
        /// </summary>
        public string oldFileName
        {
            set { _oldfilename = value; }
            get { return _oldfilename; }
        }
        /// <summary>
        /// 文件名称
        /// </summary>
        public string fileName
        {
            set { _filename = value; }
            get { return _filename; }
        }
        /// <summary>
        /// 文件路径
        /// </summary>
        public string filePath
        {
            set { _filepath = value; }
            get { return _filepath; }
        }
        /// <summary>
        /// 文件类型 img-图片类型 file-文件类型 all-混合类型
        /// </summary>
        public string fileType
        {
            set { _filetype = value; }
            get { return _filetype; }
        }
        /// <summary>
        /// 单据状态 默认传1 
        /// </summary>
        public int? billStatus
        {
            set { _billstatus = value; }
            get { return _billstatus; }
        }
        /// <summary>
        /// 创建人
        /// </summary>
        [JsonIgnore]
        public int? createUserId
        {
            set { _createuserid = value; }
            get { return _createuserid; }
        }
        /// <summary>
        /// 创建时间
        /// </summary>
        [JsonIgnore]
        public DateTime? createDate
        {
            set { _createdate = value; }
            get { return _createdate; }
        }
        /// <summary>
        /// 是否删除 默认值 0
        /// </summary>
        [JsonIgnore]
        public int? isDelete
        {
            set { _isdelete = value; }
            get { return _isdelete; }
        }
        /// <summary>
        /// 文件归属角色，前期不传
        /// </summary>
        [JsonIgnore]
        public string? roleInfoIds
        {
            set { _roleinfoids = value; }
            get { return _roleinfoids; }
        }
        /// <summary>
        /// 备注
        /// </summary>
        public string? description
        {
            set { _description = value; }
            get { return _description; }
        }

        /// <summary>
        /// 文件大小
        /// </summary>
        public long size { get; set; }

        /// <summary>
        /// 顺序号,可不传，如果传入，则会以从小到大正序排序
        /// </summary>
        public int? orderNo { get; set; }
    }
}
